<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="admin_header.jsp"%>
<%@ include file="admin_container.jsp"%>
<%@ include file="admin_nav.jsp" %>

<script type="text/javascript" src="<c:url value="/js/jquery.pagination.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/common.page.js"/>"></script>

<br/><br/>
<div>
<c:if test="${message != null }">
<span class="message">${message }</span>
</c:if>
<br/>
<br/>
<a href="<c:url value="/administrator/article.htm?method=displayForm"/>">添加煎蛋热文</a>
<br/>
<br/>
<table>
	<tr>
		<th>#</th>
		<th>标题</th>
		<th>描述</th>
		<th></th>
		<th></th>
	</tr>
	<c:forEach var="article" items="${articleList}" varStatus="status">
		<tr>
			<td>${ status.count}</td>
			<td><a href="<c:url value="${article.link }"></c:url>" target="_blank">${article.title}</a></td>
			<td>${article.description}</td>
			<td><a href="<c:url value="/administrator/article.htm"><c:param name="method" value="displayForm"/><c:param name="articleID" value="${article.articleID }"/></c:url>">编辑</a></td>
			<td><a href="<c:url value="/administrator/article.htm"><c:param name="method" value="delete"/><c:param name="articleID" value="${article.articleID }"/></c:url>">删除</a></td>
		</tr>
	</c:forEach>
</table>

<div id="pagination" class="pagination"></div>
<input type="hidden" id="totalEntries" value="${totalArticleCount}"/>

</div>
<%@ include file="admin_footer.jsp"%>